Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GEN-764 | Catch errors in debug dialog shortcut effect #2795

Merged

Conversation

robinandeer
Copy link
Contributor

Describe your changes

Avoid error when checking shortcut for debug dialog

Source: https://datadoghq.eu/rum/[email protected]:d86e86d8-8d9a-4b00-a2cb-10b8d7671fa2&issueId=00c44958-2246-11ee-83d3-da7ad0900005&from_ts=1689590266557&to_ts=1689593866557&live=true

Justify why they are needed

  • We don't want uncaught exceptions

  • I decided to log an error if the code would still contain some issues

Checklist before requesting a review

  • I have performed a self-review of my code

@vercel
Copy link

vercel bot commented Jul 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hedvig-dot-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2023 1:10pm
onboarding ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 17, 2023 1:10pm

@robinandeer
Copy link
Contributor Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

Copy link
Contributor

@alebedev alebedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think we need it? Datadog should log unhandled errors as it is. Are we expecting anything else than programming errors here?

@robinandeer
Copy link
Contributor Author

robinandeer commented Jul 17, 2023

Do you think we need it? Datadog should log unhandled errors as it is. Are we expecting anything else than programming errors here?

I think we are expecting some browsers to not support the APIs we are using

The reason to log it to Datadog is to add the context of which type of event we are dealing with etc.

But perhaps it's not such a big concern to just log as exception

@robinandeer robinandeer changed the title Catch errors in debug dialog shortcut effect GEN-764 | Catch errors in debug dialog shortcut effect Jul 17, 2023
@notion-workspace
Copy link

Copy link
Contributor

@alebedev alebedev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Discussed in person, looks good

@robinandeer robinandeer merged commit 243b46a into main Jul 17, 2023
@robinandeer robinandeer deleted the 07-17-Catch_errors_in_debug_dialog_shortcut_effect branch July 17, 2023 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants